package types

import (
	"database/sql/driver"

	"time"
)

type (
	TaskTable interface {
		Insert() bool
		Select() bool
		Update(TimeStamp int64)
		Delete()
		TableName() string
	}

	TaskControl interface {
		Create() error
		Start()
		Delete()
		Init()
		Update(timeStamp int64)
		Timer(int64) (bool, *time.Timer)
		Scan(val interface{}) (err error)
		Value() (driver.Value, error)
	}
)
